#coding:utf-8
'''
字典是一个非常有用的数据类型
列表是有序的对象集合，字典是无序的对象集合
字典通过键值对的形式存储
映射关系  key-value
'''
#定义一个空字典
dic = {}
dic['aaa'] = 'I am happy today!'
dic[0] = 'I am a boy!'
print(dic)
print(dic[0])
dic2 = {'name':'tyy','age':'30','height':'181cm'}
print(dic2['name'])
dic2['age'] = '18'
print(dic2['age'])
print(dic2.keys())
print(dic2.values())